<?php
// 示例的全局数据库配置文件

$db = require 'dbset.php';
$lang = require 'lang.php';

$config = array(
	'URL_CASE_INSENSITIVE' => 'true',//开启模块大小写通用模式
	
	'TMPL_SWITCH_ON'       => true, // 启用多模版支持
	'TMPL_DETECT_THEME'    => true, // 自动侦测模板主题
	
	'DEFAULT_MODULE'       => 'account',//默认模块
	'DEFAULT_ACTION'       => 'consume',// 默认操作
	'URL_MODEL'            => 2,// URL模式
	'URL_HTML_SUFFIX'      => 'html',//伪静态模式
	
	'TMPL_ACTION_SUCCESS'  => THINK_PATH.'Tpl/dispatch_jump.tpl',//成功跳转对应模版
	'TMPL_ACTION_ERROR'    => THINK_PATH.'Tpl/dispatch_jump.tpl',//出错跳转对应模版
				
	'SESSION_AUTO_START'   => true,//自动开启SESSION
	'SESSION_PREFIX'       => 'club',//设置SESSION前缀
	'SESSION_TIME_OUT'     => 2592000,//SESSION过期时间30天
	
	'SHOW_RUN_TIME'        => false,// 运行时间显示
	'SHOW_ADV_TIME'        => false,// 显示详细的运行时间
	
	//分语言使用不同模版
	'TMPL_DETECT_THEME'    => true,
	'DEFAULT_THEME'        => 'second',
	'THEME_LIST'           => 'second',
	
	//模版参数定界符
	'TMPL_L_DELIM'         => '{',
	'TMPL_R_DELIM'         => '}',
		
	
	'WX_APP_ID'         	=> 'wx8efb53e8b54ec3fd',
	'WX_APP_SECRET'         => '8b68217b9def92d1a70aff9d49bdd53f',
	'WX_OAUTH_DOMAIN'       => 'http://www.o-tap.com/get-weixin-code.html',
	
// 	'CLIENT_ID'         	=> 'MYT',
// 	'API_DOMAIN'       		=> 	'http://mytapi.hj.cpax.cn/',
	
	'CLIENT_ID'         	=> 'DEMO',
	'API_DOMAIN'       		=> 	'http://mytwxapi.meiyitongsoft.com:8060/',
		
	//后台内容
	'CONSOLE_THEME'         => 'manage',
		
	'QiniuAccessKey'        => 'UEu9LfiENjbYl-cSQhGzsvfXuNsEm_5rpwq7shFy',
	'QiniuSecretKey'        => 'ye-WypMZ9BwuCUy2cRGbPcRC2WrD00EYw0O-Maej',
	'QiniuBucket'         	=> 'temp',
	'QiniuDomain'         	=> 'http://7xpfzq.com1.z0.glb.clouddn.com/',
	'QiniuUploadMaxWidth'   => 500,
	'QiniuUploadMaxHeight'  => 500,
	
);



$all = array_merge($db,$lang);
$all = array_merge($config,$all);

return $all;

?>